package cn.lili.modules.goods.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 更新商品状态参数
 *
 * @author paulG
 * @since 2022/8/17
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GoodsUpdateStatusDTO {

    /**
     * 商品id集合
     */
    private List<String> goodsIds;

    /**
     * 店铺id(当前操作角色不为管理员时，必须要传，值应为当前执行操作的店铺id)
     */
    private String storeId;

    /**
     * 商品上下架状态
     */
    private String goodsStatus;

    /**
     * 商品审核状态
     */
    private String goodsAuth;

    /**
     * 删除标志
     */
    private Boolean deleteFlag;

    /**
     * 下架原因
     */
    private String underReason;

    /**
     * 虚拟购买数量
     */
    private Integer virtualBuyCount;

    /**
     * 虚拟购买数量
     */
    private Integer virtualEvaluateCount;

    /****************************虚拟评价内容*************************************8/
    /**
     * 虚拟评价内容
     */
    private String virtualEvaluateContent;

    @ApiModelProperty(value = "会员头像")
    private String memberProfile;

    @ApiModelProperty(value = "会员名称")
    private String memberName;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "商品图片")
    private String goodsImage;

    @ApiModelProperty(value = "已购规格款式")
    private String goodsName;

    @ApiModelProperty(value = "好中差评 , GOOD：好评，MODERATE：中评，WORSE：差评", allowableValues = "GOOD,MODERATE,WORSE")
    private String grade;

}
